using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Data.Entity;

namespace Edu.Web.Data.Entity
{
    /// <summary>
    /// CourceExam
    /// </summary>    
	[Table("cource_exam")]
    public partial class CourceExamEntity : BaseModel<long>
    {		    
        /// <summary>
        /// 
        /// </summary>
		[Column("title")]
        public string Title { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("cource_id")]
        public long CourceId { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("clazz_id")]
        public long ClazzId { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("create_time")]
        public DateTime CreateTime { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("create_user_id")]
        public long CreateUserId { get; set; }
    }

	public class CourceExamEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<CourceExamEntity>(new EntityTypeConfiguration<CourceExamEntity>());
        }
    }
}

